package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class BaseMobileActionScriptProject extends Sprite
	{
		public function BaseMobileActionScriptProject()
		{
			super();
			
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);

		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			// support autoOrients
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;

			var tf:TextField = new TextField();
			tf.width = 500;
			tf.defaultTextFormat = new TextFormat(null, 32);
			tf.text = "Hello World";
			this.addChild(tf);
		}
	}
}